import React from 'react'
const car = React.lazy(() => import('../views/car'))
const detail = React.lazy(() => import('../views/detail'))
const home = React.lazy(() => import('../views/home'))
const layout = React.lazy(() => import('../views/layout'))
const login = React.lazy(() => import('../views/login'))
const my = React.lazy(() => import('../views/my'))

const routes = [{
	path: '/',
	element: layout,
	children: [{
		path: '/',
		element: home
	},{
		path: '/my',
		element: my
	},{
		path: '/car',
		element: car
	}]
}, {
	path: '/detail/:id',
	element: detail
}, {
	path: '/login',
	element: login
}]


export default routes